package cn.tedu.javacv159.param;

import cn.tedu.javacv159.util.DirectionConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Max;

@ApiModel(value = "视频请求参数")
@Data
@Validated
public class VideoParam {
    @ApiModelProperty("视频文件")
    private MultipartFile file;
    @ApiModelProperty("间隔时间")
    @Max(1)
    private Double intervalTime = 0.5;
    @ApiModelProperty("视频方向")
    private String direction = DirectionConstant.RIGHT_TO_LEFT;
}
